package chan.project.smartlawdatamanage;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableFeignClients(basePackages = {"chan.project.smartlawservice"})
@MapperScan("chan.project.smartlawdatamanage.mapper")
@ComponentScan("chan.project")//需要开启，否则扫描不到配置类与其它模块已经配好的配置
@EnableScheduling
public class SmartLawDataManageApplication {

	public static void main(String[] args) {
		SpringApplication.run(SmartLawDataManageApplication.class, args);
	}

}
